<?php
// Prevent individual file access
if(!defined('DIR_BASE')) exit;

/**
 * Retrieve what has been send
 */
class Request{
	
	/**
	 * Get posted variable
	 * @param String $var Variablename
	 */
	public static function getVar($var){
		if(!isset($_REQUEST[$var]))
			return false;
		$source = $_REQUEST[$var];
		if(Filter::str($source))
			return $source;
		else return false;
	}
	
	/**
	 * Get posted word
	 * @param String $var Variablename
	 */
	public static function getWord($var){
		if(!isset($_REQUEST[$var]))
			return false;
		$source = $_REQUEST[$var];
		if(Filter::word($source))
			return $source;
		else return false;
	}
}
?>